package com.example.superoa.controller;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONArray;
import com.example.superoa.model.pojos.CalendarYf;
import com.example.superoa.model.service.CalendarYfService;

@Controller
public class CalendarYfController {
	@Autowired
private CalendarYfService cys;
	@RequestMapping("calendaryf")
	@ResponseBody
	public JSONArray findOne(String imouthyear,HttpSession session) {
		int  staff_id=Integer.valueOf(session.getAttribute("sid").toString());//获取当前员工id
		return cys.selectCalendarByidtwo(imouthyear,staff_id);
	}
}
